package com.ruicar.afs.cloud.channel.channelworkflow.condition;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author mingzhi.li
 */
@Data
public class ChannelOnlineWorkFlowCondition {
    /**
     * 页面size
     */
    int pageSize;
    /**
     * 页码
     */
    int pageNumber;
    /**
     * 渠道名称
     */
    private String channelFullName;
    /**
     * 用户名
     */
    private String username;

    /**
     * 用户角色
     */
    private List<String> userRoles;
    /**
     * 渠道id
     */
    @JsonSerialize(using= ToStringSerializer.class)
    @JSONField(serializeUsing = com.alibaba.fastjson.serializer.ToStringSerializer.class)
    private Long channelId;
    /**
     * 审批意见
     */
    private String approve;

    /**
     * 业务id
     */
    private String bizDataId;

    /**
     * 备注
     */
    private String remark;

    /**
     * 退回
     */
    private String backOpinion;

    /**
     * 车商id
     */
    @JsonSerialize(using= ToStringSerializer.class)
    @JSONField(serializeUsing = com.alibaba.fastjson.serializer.ToStringSerializer.class)
    private Long carDealerId;

    /**
     * 车商经纬度范围
     */
    private String longitudeLatitudeRange;

    /**
     * 保证金应收
     */
    private BigDecimal channelDeposit;
    /**
     * 保证金实收
     */
    private BigDecimal channelDepositPaidIn;

    /**
     * 节点处理人
     */
    private String taskName;
    /**
     * 业务关联id
     */
    private Long businessKey;
    /**
     * 业务类型：新车、二手车
     */
    private String businessType;
    /**
     * 流程任务
     */
    private String flowName;
}
